from django.urls import path
from user import views
from .views import AvatarUploadView, AvatarMergeView
from .views import UpdateUsername

urlpatterns = [
    path('user/',views.UserView.as_view()),
    path('login/', views.LoginView.as_view()),
    path('send/', views.SendcodeView.as_view()),
    path('loginout/', views.ExitLoginView.as_view()),
    path('retoken/', views.ReTokenView.as_view()),
    path('dd/login/', views.DingLoginView.as_view()),
    path('dd/login/callback/', views.LoginCallbackView.as_view()),
    path('qiniu/', views.QnToken.as_view()),
    path('baidu/ocr/', views.OCRView.as_view()),
    path('updatephone/', views.UPphone.as_view()),
    path('avatar/upload/', AvatarUploadView.as_view(), name='avatar-upload'),
    path('avatar/merge/', AvatarMergeView.as_view(), name='avatar-merge'),
    path('update/name/', UpdateUsername.as_view(), name='update_username'),
]